#include <iostream>
#include <vector>
#include <string>

using std::cout;
using std::endl;
using std::string;
using std::vector;

template <class T>
inline void printContiner(const T &continer)
{
    for (const auto &x : continer)
    {
        cout << x << endl;
    }
}

template <class T>
inline void printContinerPair(const T& continer)
{
    for (const auto &x : continer)
    {
        cout << x.first << " : " << x.second << endl;
    }
}

template <class T>
inline void printContinerOption(const T &continer)
{
    for (auto &elem : continer)
    {
        if (elem)
            cout << elem.value() << endl;
        else
            cout << "元素无效" << endl;
    }
}
